﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Data {
    /// <summary>
    /// Class to set and get user data
    /// </summary>
    public class CheckUser_Data {
        private string username;

        public CheckUser_Data() { }

        [DataObjectField(false, false, true)]
        public string UserName
        {
            get { return username; }
            set { username = value; }
        }

        public override string ToString()
        {
            return UserName;
        }

        public CheckUser_Data(string thisusername)
        {
            this.UserName = thisusername;
        }
    }

    /// <summary>
    /// Class to set and get admin data
    /// </summary>
    public class CheckAdmin_Data {
        private string username;

        public CheckAdmin_Data() { }

        [DataObjectField(false, false, true)]
        public string UserName {
            get { return username; }
            set { username = value; }
        }

        public override string ToString() {
            return UserName;
        }

        public CheckAdmin_Data(string thisusername) {
            this.UserName = thisusername;
        }
    }
}
